package com.stark.wechat.service.message.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 行业信息
 *
 * @author <a href="mengbin@eastsoft.com.cn">Ben</a>
 * @version 1.0.0
 * @see <a href="https://developers.weixin.qq.com/doc/service/api/notify/template/api_getindustry.html#%E8%BF%94%E5%9B%9E%E4%BD%93-Response-Payload">基础消息与订阅通知 / 模板消息 / 获取行业信息</a>
 * @since 2025/8/6
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class Industry implements Serializable {

    private static final long serialVersionUID = 2851127827565718603L;

    /**
     * 账号设置的主营行业
     */
    @JsonProperty("primary_industry")
    private PrimaryIndustry primaryIndustry;

    /**
     * 账号设置的副营行业
     */
    @JsonProperty("secondary_industry")
    private SecondaryIndustry secondaryIndustry;

    /**
     * 账号设置的主营行业
     */
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class PrimaryIndustry implements Serializable {

        private static final long serialVersionUID = -7845565722187716204L;

        /**
         * 一级类目
         */
        @JsonProperty("first_class")
        private String firstClass;

        /**
         * 二级类目
         */
        @JsonProperty("second_class")
        private String secondClass;

    }

    /**
     * 账号设置的副营行业
     */
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class SecondaryIndustry implements Serializable {

        private static final long serialVersionUID = -7907271547701268857L;

        /**
         * 一级类目
         */
        @JsonProperty("first_class")
        private String firstClass;

        /**
         * 二级类目
         */
        @JsonProperty("second_class")
        private String secondClass;

    }

}
